package com.pdg.mcplugin.spawnsurance.commandprocessors;

import org.bukkit.command.CommandSender;

import com.pdg.mcplugin.common.ArgumentList;
import com.pdg.mcplugin.common.baseclasses.CommandProcessorBase;
import com.pdg.mcplugin.spawnsurance.SpawnSurance;

public class CommandProcessor extends CommandProcessorBase<SpawnSurance> {

	private static final String subcommandGet = "GET";
	private static final String subcommandSet = "SET";
	private static final String subcommandCheck = "CHECK";
	private static final String subcommandFilter = "FILTER";

	public CommandProcessor(SpawnSurance thePlugin) {
		super(thePlugin, new String[]{
				"/spawnsurance       - general help",
				"/spawnsurance get   - help with getting properties",
				"/spawnsurance set   - help with setting properties",
				"/spawnsurance check - checking for spawnsurance coverage",
				"/spawnsurance filter - filter modification"
		});
		setSubProcessor(subcommandGet,new GetCommandProcessor(thePlugin));
		setSubProcessor(subcommandSet,new SetCommandProcessor(thePlugin));
		setSubProcessor(subcommandCheck,new CheckCommandProcessor(thePlugin));
		setSubProcessor(subcommandFilter,new FilterCommandProcessor(thePlugin));
	}

	@Override
	protected boolean specialProcessCommand(CommandSender theCommandSender,
			String theSubCommand, ArgumentList theArgumentList) {
		return false;
	}

}
